﻿using System.ComponentModel;
using System.Xml;
using System.Xml.Serialization;

namespace Bpmn.Xml;

/// <remarks/>
[Serializable]
[XmlType(Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", TypeName = "tExtension")]
[XmlRoot("extension", Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", IsNullable = false)]
public partial class Extension
{
    /// <remarks/>
    [XmlElement("documentation")]
    public Documentation[] Documentation { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("definition")]
    public XmlQualifiedName Definition { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("mustUnderstand")]
    [DefaultValue(false)]
    public bool MustUnderstand { get; set; } = false;
}
